export const REGEXP_MAP = {
  link: /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/,
  email: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
  phone: /^1[3456789]\d{9}$/
}

export const REGEXP_FN = {
  link: (link: string) => link.match(REGEXP_MAP.link),
  email: (email: string) => email.match(REGEXP_MAP.email),
  phone: (phone: string) => phone.match(REGEXP_MAP.phone)
}
